<include file="inc:header" />
<div class="page" id='{$data.act}'>
<?php
	$back_url = U("more/index");
	$back_page = "#More";
	$back_epage = $_REQUEST['epage']=="" ? "#more" : "#".$_REQUEST['epage'];
?>
	<include file="inc:title" />
<div class="content infinite-scroll" >
<!-- 这里是页面内容区 -->

<div class="integral_container">
	<!--积分商城-->
	<ul class="integral_nav_0">
		<li class="type_0" onclick="viewintegralNav(0);">所有类别</li>
		<li class="type_1" onclick="viewintegralNav(1);">积分范围</li>
	</ul>
	<div class="blank055"></div>
	
	<div class="integral_nav_1">
		<table style=" width:100%;">
		<tr>
			<foreach name="data.sort_url" item="sorts" key="key">
			<th <if condition="$sorts.id eq $data['sort']"> class="y" 1</if> >
				<a href="#" onclick="reloadpage('{$sorts.url}','#{$data.act}','.integral_container');">{$sorts.name}</a>
			</th>
			</foreach>
		</tr>
	</table>
	</div>
	
	<div class="blank055"></div>
	<div>
		<ul class="integral_goods" now_page="1" data-distance="{$data.rs_count}"  all_page="{$data.page.page_total}" ajaxurl="{:U('integralmall/index'),array('cates'=>$data.cates,'integral'=>$data.integral,'sort'=>$data.sort) }">
			<foreach name="data.goods_list" item="goods"  key="key">
			<li class="bb1 ">
				<a class="w_b" href="#" onclick="RouterURL('{:U('goodsinformation/index',array('id'=>$goods.id))}','#Goodsinformation',2);" >
				<div class="left_img"><img src="{$goods.img}" /></div>
			    <div class="right_p w_b_f_1">
			    	<h5>{$goods.name}</h5>
					<p >所需积分：<span class="ea544a">{$goods.score}</span>分</p>
					<p>购买人数：
					<if condition="$goods.invented_number gt 0">
					{$goods.invented_number}
					<else/>
					0
					</if>人
					</p>
			    </div>
			    </a>
			  </li>
			</foreach>
		</ul>
	</div>
	<div class="blank055"></div>
	    <div class="float_block Object_0" style="display:none;">
		<div class="float_background"></div>
		    <div class="integral_mall_nav">
		  	<h5>所有类别<span class="close" onclick="closeIntegalNav(this);">关闭</span></h5>
			  <div class="b_blank"></div>
			  <ul>
				<foreach name="data.cates_url" item="cates" key="key">
				<li <if condition="$cates.id eq $data.cates"> class="y"</if>>
					<a href="#" onclick="reloadpage('{$cates.url}','#{$data.act}','.integral_container');">
						<span class="name f_l">{$cates.name}</span>
						<span class="ico f_r"><i class="fa fa-check"></i></span>
					</a>
				</li>
				</foreach>
			  </ul>
			</div>
		</div>

		<div class="float_block Object_1" style="display:none;">
		<div class="float_background"></div>
		<div class="integral_mall_nav">
			<h5>积分范围<span class="close" onclick="closeIntegalNav(this);">关闭</span></h5>
			<div class="b_blank"></div>
			<ul>
				<foreach name="data.integral_url" item="integral" key="key">
					<li <if condition="$integral.id eq $data.integral"> class="y"</if>>
					<a href="#" onclick="reloadpage('{$integral.url}','#{$data.act}','.integral_container');">
						<span class="name f_l">{$integral.name}</span>
						<span class="ico f_r"><i class="fa fa-check"></i></span>
					</a>
					</li>
				</foreach>

			</ul>
		</div>
	</div>
</div>

 <!-- 加载提示符 -->
<div class="infinite-scroll-preloader">
  <div class="preloader">
  </div>
</div>
<include file="inc:footer" />